From 893b9da3b36b9673c865c376771b7903ca39c36e Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Wed, 21 May 2008 09:48:39 +0000 Subject: [PATCH] changed fallback macro to have the same return type as rint(). 2008-05-21 Sven Neumann * babl/babl-internal.h (rint): changed fallback macro to have the same return type as rint(). svn path=/trunk/; revision=314 --- ChangeLog | 5 +++++ babl/babl-internal.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c6cf2cc..92dc6eb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-05-21 Sven Neumann + + * babl/babl-internal.h (rint): changed fallback macro to have the + same return type as rint(). + 2008-05-21 Jan Heller * babl/babl-internal.h: diff --git a/babl/babl-internal.h b/babl/babl-internal.h index c7d6110..7ceead3 100644 --- a/babl/babl-internal.h +++ b/babl/babl-internal.h @@ -54,7 +54,7 @@ /* fallback to floor function when rint is not around */ #ifndef HAVE_RINT -# define rint(f) ((long) floor (((double) f) + 0.5)) +# define rint(f) (floor (((double) (f)) + 0.5)) #endif -- 2.30.2